def lone_sum(a, b, c):
  if a == b and a == c:
    return 0
  if a == b and a != c:
    return c
  if b == c and b != a:
    return a
  if a == c and a != b:
    return b
  return a+b+c